<template>
    <div id="resumelist">
        {{resumeList}}
         <el-table
      :data="resumeList"
      style="width: 100%">
      <el-table-column
        prop="id"
        label="Id"
        width="180">
      </el-table-column>
      <el-table-column
        prop="name"
        label="姓名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="sex"
        label="性别">
      </el-table-column>
       <el-table-column
        prop="status"
        label="状态">

      </el-table-column>
       <el-table-column label="操作">
      <template slot-scope="scope">
          <div v-if="scope.row.status==0">
        <el-button
          size="mini"
          @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
          </div>
           <div v-if="scope.row.status==1">
        <el-button
          size="mini"
          type="danger"
          @click="handleRevise(scope.$index, scope.row)">修订</el-button>
           </div>
            <div v-if="scope.row.status==2">
          <el-button
          size="mini"
          type="warning"
          @click="handleChange(scope.$index, scope.row)">变更</el-button>
            </div>
      </template>
    </el-table-column>
    </el-table>
    </div>
</template>
<script>
export default {
    name:'ResumeList',
    data(){
        return{
            resumeList:[],
             dataForm: {
                id: 0,
                name: '',
                sex: '',
                birthday: '',
                address: '',
                phone: '',
                images:'',
                email: '',
                resumeType: '',
                workTime: '',
                uid: '',
                clazzid:null,
                status:null,
                writeStatus:null
                },
        }
    },
    methods:{
        findresumeList(){
             this.$http({
              url: this.$http.adornUrl(`/resume/resumebasic/findResumeByUidList`),
              method: 'get',
              params: this.$http.adornParams()
            }).then(({data}) => {
              if(data!==''){
                console.log('>>>>>>>>>>>>'+data);
                this.resumeList = data
              }
            })
        },
        handleEdit(index,row){
             this.$router.push({path:'/resume-resumebasic',query:{resumeId:row.id}});
        },
        handleRevise(index,row){
             this.$router.push({path:'/resume-resumebasic',query:{resumeId:row.id}});
        },
        handleChange(index,row){
             this.$router.push({path:'/resume-resumebasic',query:{resumeId:row.id}});
        }
    },
    mounted(){
        this.findresumeList();
    }
}
</script>
